package net.fdukedom.epicurus.tools.logging;

import java.util.Comparator;

/**
 * Comapres instances of Status.
 *
 * @author Dmitry Y. Kochelaev
 */
public class StatusComparator implements Comparator<Status> {

    public int compare(Status o1, Status o2) {
        if (o1 == o2) {
            return 0;
        }
        return o1.getStatus() > o2.getStatus() ? 1 : -1;
    }
}
